package com.hsc.www.validator.test5;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PeopleController {

    @Autowired
    PeopleServices peopleServices;

    @RequestMapping("/addPeople")
    public String addPeople(@RequestBody People people) {
        String id = people.getId();
        return peopleServices.addPeople(id, people);
    }


}